package cn.wolfcode.crm.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Setter
@Getter
public class ClassInformation {
    private Long id;
    private String name;
    private Integer number;
    private Employee teacher;//班主任

    public String getJson() {
        HashMap map = new HashMap();
        map.put("id", this.id);
        map.put("name", this.name);
        map.put("number", this.number);
        map.put("teacherId", this.teacher.getId());
        String jsonString = JSON.toJSONString(map);
        return jsonString;
    }


}